package com.pool.net;

import android.content.Context;
import android.net.wifi.WifiManager;

/**
 * @author claveld@gmail.com (David Clavel)
 */
public class Internet {

  private static Context context;

  public static void init(Context context) {
    Internet.context = context;
  }
  
  public static boolean isWifiEnabled() {
    WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
    return wifiManager.isWifiEnabled();
  }
}
